import React from 'react'
import {Tag} from 'antd'

const AdministratorList = ({organizationUsers, removeRole}) => {
  return <div>
    {
      organizationUsers.map(user => {
        return <Tag closable
          style={{margin: 5}}
          onClose={() => removeRole(user.id)}>
          {user.username}
        </Tag>
      })
    }
  </div>
}

export default AdministratorList
